package com.bdqn.pojo.system;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bdqn.pojo.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 角色表
 *
 * @author LILIBO
 * @since 2022-06-24
 */
@Tag(name = "角色表")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("`sys_role`")
public class SysRole extends Model {

    /**
     * 角色编号
     */
    @Schema(name = "角色编号")
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 名称
     */
    @Schema(name = "名称")
    private String name;

    /**
     * 描述
     */
    @Schema(name = "描述")
    private String remark;

    /**
     * 状态 0:启用;1:禁用
     */
    @Schema(name = "状态 0:启用;1:禁用")
    private Integer status;

}
